Class
- It is a user define data type
- It is the main feature in oop concept.
- It is the blueprint for an object.
- It contains data and data members.
- To declare a class, class keyword must be start in c++ program.
- The member function of class may be define inside or outside of the class.
Syntax
class name_class
{
                private:
                                variable declaration;
                                function declaration;
                public:
                               variable declaration;
                                function declaration;
}; 
Object
No comments:
Post a Comment